import request from '@/utils/request'

export const getProDetail = (id) => {
  return request.get('/goods/detail', {
    params: {
      goodsId: id
    }
  })
}

export const getServeDetail = (id) => {
  return request.get('/goods.service/list', {
    params: {
      goodsId: id
    }
  })
}

export const getGoodComment = (id, limit) => {
  return request.get('/comment/listRows', {
    params: {
      goodsId: id,
      limit: limit
    }
  })
}

export const getGoodCommentTotal = (id) => {
  return request.get('/comment/total', {
    params: {
      goodsId: id
    }
  })
}
